d97b819e143da82dba216fe516fbd803069a833b,management/testing/sample-entity/src/main/java/org/terracotta/management/entity/sample/client/management/CacheStatisticsManagementProvider.java,CacheStatisticsManagementProvider,collectStatistics,#Context#Collection#,67

Before Change


      } else {
        for (String statisticName : statisticNames) {
          try {
            statistics.put(statisticName, exposedClientCache.queryStatistic(statisticName));
          } catch (IllegalArgumentException ignored) {
            // ignore when statisticName does not exist and throws an exception
          }

After Change


        statistics.putAll(exposedClientCache.queryStatistics());
      } else {
        for (String statisticName : statisticNames) {
          Statistic<?, ?> statistic = exposedClientCache.queryStatistic(statisticName);
          if (statistic != null) {
            statistics.put(statisticName, statistic);
          }
        }
      }